﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_DeleteBusTypeControl : System.Web.UI.UserControl
{
    ListAndProcessData ws = new ListAndProcessData();
    private string id = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        id = Request.QueryString["idbustype"].ToString();
        //bool a;
        ws.DeleteBusType(id);
        if (ws.DeleteBusType(id))
        {
            Response.Redirect("../Admin/showbustype_admin.aspx");

        }
        else
        {
            Response.Redirect("default3.aspx");
        }
    }
}